.class public Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private b:Landroid/widget/TextView;

.field private c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private d:Lcom/waiqin365/lightapp/view/NoNetView;

.field private e:Lcom/waiqin365/lightwork/tracker/model/g;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/text/SimpleDateFormat;

.field private l:Lcom/waiqin365/lightwork/tracker/bk;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->f:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->g:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->h:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->i:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->j:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;)Lcom/waiqin365/lightwork/tracker/model/g;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->finish()V

    goto :goto_0

    :sswitch_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightwork/tracker/TrackerAllActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "titletv"

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->b:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userdate"

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->h:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userid"

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "username"

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0089 -> :sswitch_0
        0x7f0c008a -> :sswitch_0
        0x7f0c0091 -> :sswitch_1
        0x7f0c0093 -> :sswitch_1
    .end sparse-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 6

    const/4 v5, 0x1

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030275

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "username"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->g:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userdate"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->h:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "userid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "titletv"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->j:Ljava/lang/String;

    sget-object v0, Lcom/fiberhome/gaea/client/c/b;->d:Ljava/util/Locale;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "MM-dd EEEE"

    sget-object v2, Lcom/fiberhome/gaea/client/c/b;->d:Ljava/util/Locale;

    invoke-direct {v0, v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->k:Ljava/text/SimpleDateFormat;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->k:Ljava/text/SimpleDateFormat;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->h:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->l(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->i:Ljava/lang/String;

    :try_start_0
    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "locDayDetail"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/g;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;

    if-nez v0, :cond_1

    const v0, 0x7f080615

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v5}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->finish()V

    :goto_2
    return-void

    :cond_0
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v1, "MM-dd EEEE"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->k:Ljava/text/SimpleDateFormat;

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    :cond_1
    const v0, 0x7f0c0c15

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    const-string/jumbo v0, ""

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->g:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x7f0807e9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_3
    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v1, v1, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->g:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->b:Landroid/widget/ImageButton;

    invoke-virtual {v0, v4}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    const v1, 0x7f0807e7

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->d:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c16

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c00cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    const v0, 0x7f0c0c17

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/g;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->e:Lcom/waiqin365/lightwork/tracker/model/g;

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/g;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_3

    new-instance v0, Lcom/waiqin365/lightwork/tracker/bk;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/tracker/bk;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->l:Lcom/waiqin365/lightwork/tracker/bk;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->l:Lcom/waiqin365/lightwork/tracker/bk;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_2

    :cond_2
    const v0, 0x7f0807ea

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-array v1, v5, [Ljava/lang/Object;

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->g:Ljava/lang/String;

    aput-object v2, v1, v3

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_3

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    const v1, 0x7f08058e

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setMsg(Ljava/lang/String;Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSummaryDayActy;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto/16 :goto_2
.end method
